package com.wyw.design.model.learning.behavioral.mediator;

/**
 * @Title   卖家-同事角色
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/18 10:55
 * Update History:
 * Author        Time            Content
 */
public class ColleagueSeller extends Colleaguer {
    public ColleagueSeller(MeditorCompany meditorCompany) {
        super(meditorCompany);
    }
    // 同事类发布一个需求，不过是通过中介公司去发布，发布人是自己
    public void send(String message) {
        meditorCompany.publish(message, this);
    }
    public void accept(String message) {
        System.out.println("卖家接收到的消息是：" + message);
    }
}